package helper.base.math

import helper.base.A2Tuple

object DoubleIntervalHelper {
    class DoubleInterval(
        val c1: Boolean,
        val d1: Double,
        val d2: Double,
        val c2: Boolean,
        ) : Cloneable {
        companion object {
            fun getDoubleInterval(
                c1: Boolean,
                d1: Double,
                d2: Double,
                c2: Boolean,
            ): DoubleInterval {
                return DoubleInterval(
                    c1,
                    d1,
                    d2,
                    c2,
                )
            }
        }

        fun getMinMaxIntPair(
        ): A2Tuple<Int, Int> {
            return IntRangeHelper.getMinMaxIntPair(
                c1,
                d1,
                d2,
                c2,
            )
        }
    }
}